// @ts-ignore
/* eslint-disable */
import request from '@/utils/request'

/** getMilestone id获取里程碑列表 GET /api/milestone */
export async function getMilestoneUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getMilestoneUsingGETParams,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseMileStoneVo_>('/api/milestone', {
    method: 'GET',
    params: {
      ...params
    },
    ...(options || {})
  })
}

/** addMilestone 新增里程碑 POST /api/milestone/add */
export async function addMilestoneUsingPost(
  body: API.AddMileStoneRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean_>('/api/milestone/add', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json'
    },
    data: body,
    ...(options || {})
  })
}

/** getTaskCount 获取里程碑任务统计信息 GET /api/milestone/taskCount */
export async function getTaskCountByMileIdUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getTaskCountByMileIdUsingGETParams,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseTaskCountVo_>('/api/milestone/taskCount', {
    method: 'GET',
    params: {
      ...params
    },
    ...(options || {})
  })
}

/** updateMilestone 更新里程碑 POST /api/milestone/update */
export async function updateMilestoneUsingPost(
  body: API.UpdateMileStoneRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean_>('/api/milestone/update', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json'
    },
    data: body,
    ...(options || {})
  })
}
